package com.ymsoft.myerp.service;

import com.ymsoft.myerp.entity.TokenCarrier;
import com.ymsoft.myerp.entity.UserDetail;

/**
 * @author: yzr
 * @date: 2020/4/12
 */
public interface ILoginService {
    UserDetail register(UserDetail userDetail);
    TokenCarrier login(String username, String password);
    void logout(String token);
    TokenCarrier refresh(String oldToken);
    UserDetail getUserByToken(String token);
}
